package com.mgkj.dto.yf;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LiangPanDeng
 * @Date: 2024/01/22/14:23
 * @Description:
 */
@Data
@ApiModel("领料单实体")
public class InitLldDto {

    @ApiModelProperty(value = "领料单别",required = true)
    @JsonProperty("TC001")
    @NotBlank(message = "领料单别不能为空")
    private String TC001;

    @ApiModelProperty(value = "领料单号")
    @NotBlank(message = "领料单号不能为空")
    @JsonProperty("TC002")
    private String TC002;

    @ApiModelProperty(value = "领退料日期",required = true)
    @JsonProperty("TC003")
    private String TC003;

    @ApiModelProperty(value = "工厂编号")
    @JsonProperty("TC004")
    private String TC004;

    @ApiModelProperty(value = "工作中心/同一工作中心中的同一单别性质类型工单生成同一领料单",required = true)
    @JsonProperty("TC005")
    private String TC005;

    @ApiModelProperty(value = "委外供应商")
    @JsonProperty("TC006")
    private String TC006;

    @ApiModelProperty(value = "单据性质码",required = true)
    @JsonProperty("TC008")
    private String TC008;

    @ApiModelProperty(value = "审核码",required = true)
    @JsonProperty("TC009")
    private String TC009;

    @ApiModelProperty(value = "领退料日期",required = true)
    @JsonProperty("TC014")
    private String TC014;

    @ApiModelProperty(value = "来源单别/工单单别",required = true)
    @JsonProperty("TC019")
    private String TC019;

    @ApiModelProperty(value = "来源单号/工单单号",required = true)
    @JsonProperty("TC020")
    private String TC020;

    @ApiModelProperty(value = "公司")
    @NotBlank(message = "公司不能为空")
    private String company;

    @ApiModelProperty("领料工单列表")
    private List<InitLldList> teList;

}
